#-*- coding: utf-8 -*-

class Error(Exception):
    """Base class for exceptions in this module."""
    pass


class NotHandled(Error):

    def __init__(self):
	pass


class Handled(Error):

    def __init__(self, msg, value=''):
	self.msg = msg
	self.value = value

    def __str__(self):
	errstr = self.msg
	if self.value:
	    errstr += ' : ' + repr(self.value)
	return errstr
